<?php
//系统目录。
define("ROOT", str_replace("\\", "/", dirname(__FILE__)) . "/");
define("INCPATH", ROOT . "inc/");
define("MODULESPATH", ROOT . "modules/");
define("TEMPLATESTPATH", ROOT . "templates/default/");
define("SYSTEMNAME", "计算机易学实验室");
//设定没有限期的执行时间。
//set_time_limit(0);

require_once(ROOT. "inc/core/ioc/applicationcontextfactory.class.php");
$applicationContextFactory = ApplicationContextFactory::getIntance();
$context = $applicationContextFactory->create();
?>